home *** CD-ROM | disk | FTP | other *** search
/ Venus 7000 / darktronics.iso / Software / Service Packs / Win2kSP4.exe / i386 / ntevt.mo_ / ntevt.mof
Encoding:
Text File  |  2003-06-19  |  13.7 KB  |  130 lines

  1.  ■#pragma autorecover
  2. #pragma namespace("\\\\.\\root\\cimv2")
  3. [singleton,Locale(1033),UUID("{8502C57A-5FBB-11D2-AAC1-006008C78BC7}")] 
  4. class NTEventlogProviderConfig
  5. {
  6.   datetime LastBootUpTime;
  7. };
  8. Instance of __Win32Provider as $DataProv
  9. {
  10.   Name = "MS_NT_EVENTLOG_PROVIDER";
  11.   ClsId = "{FD4F53E0-65DC-11d1-AB64-00C04FD9159E}";
  12.   ImpersonationLevel = 1;
  13.   PerUserInitialization = "TRUE";
  14. };
  15. Instance of __MethodProviderRegistration
  16. {
  17.   Provider = $DataProv;
  18. };
  19. Instance of __InstanceProviderRegistration
  20. {
  21.   Provider = $DataProv;
  22.   SupportsPut = TRUE;
  23.   SupportsGet = TRUE;
  24.   SupportsDelete = FALSE;
  25.   SupportsEnumeration = TRUE;
  26.   QuerySupportLevels = {"WQL:UnarySelect"};
  27. };
  28. [dynamic,provider("MS_NT_EVENTLOG_PROVIDER"),Locale(1033),UUID("{8502C57B-5FBB-11D2-AAC1-006008C78BC7}")] 
  29. class Win32_NTEventlogFile : CIM_DataFile
  30. {
  31.   [read] string LogfileName;
  32.   [read,write] uint32 MaxFileSize;
  33.   [read] uint32 NumberOfRecords;
  34.   [read,volatile,ValueMap{"0", "1..365", "4294967295"}] string OverWritePolicy;
  35.   [read,write,Units("Days"),Range("0-365 | 4294967295")] uint32 OverwriteOutDated;
  36.   [read] string Sources[];
  37.   [implemented,Privileges{"SeSecurityPrivilege", "SeBackupPrivilege"}] uint32 ClearEventlog([in] string ArchiveFileName);
  38.   [implemented,Privileges{"SeSecurityPrivilege", "SeBackupPrivilege"}] uint32 BackupEventlog([in] string ArchiveFileName);
  39. };
  40. [dynamic,provider("MS_NT_EVENTLOG_PROVIDER"),EnumPrivileges{"SeSecurityPrivilege"},Locale(1033),UUID("{8502C57C-5FBB-11D2-AAC1-006008C78BC7}")] 
  41. class Win32_NTLogEvent
  42. {
  43.   [key] uint32 RecordNumber;
  44.   [key] string Logfile;
  45.   uint32 EventIdentifier;
  46.   uint16 EventCode;
  47.   string SourceName;
  48.   [ValueMap{"1", "2", "4", "8", "16"}] string Type;
  49.   uint16 Category;
  50.   string CategoryString;
  51.   datetime TimeGenerated;
  52.   datetime TimeWritten;
  53.   string ComputerName;
  54.   string User;
  55.   string Message;
  56.   string InsertionStrings[];
  57.   Uint8 Data[];
  58.   [ValueMap{"1", "2", "3", "4", "5"}] uint8 EventType;
  59. };
  60. [dynamic,provider("MS_NT_EVENTLOG_PROVIDER"),EnumPrivileges{"SeSecurityPrivilege"},Locale(1033),UUID("{8502C57D-5FBB-11D2-AAC1-006008C78BC7}"),Association : ToInstance] 
  61. class Win32_NTLogEventLog
  62. {
  63.   [key,read] Win32_NTEventlogFile Ref Log;
  64.   [key,read] Win32_NTLogEvent Ref Record;
  65. };
  66. [dynamic,provider("MS_NT_EVENTLOG_PROVIDER"),EnumPrivileges{"SeSecurityPrivilege"},Locale(1033),UUID("{8502C57E-5FBB-11D2-AAC1-006008C78BC7}"),Association : ToInstance] 
  67. class Win32_NTLogEventUser
  68. {
  69.   [key,read] Win32_UserAccount Ref User;
  70.   [key,read] Win32_NTLogEvent Ref Record;
  71. };
  72. [dynamic,provider("MS_NT_EVENTLOG_PROVIDER"),EnumPrivileges{"SeSecurityPrivilege"},Locale(1033),UUID("{8502C57F-5FBB-11D2-AAC1-006008C78BC7}"),Association : ToInstance] 
  73. class Win32_NTLogEventComputer
  74. {
  75.   [key,read] Win32_ComputerSystem Ref Computer;
  76.   [key,read] Win32_NTLogEvent Ref Record;
  77. };
  78. Instance of __Win32Provider as $EventProv
  79. {
  80.   Name = "MS_NT_EVENTLOG_EVENT_PROVIDER";
  81.   ClsId = "{F55C5B4C-517D-11d1-AB57-00C04FD9159E}";
  82. };
  83. Instance of __EventProviderRegistration
  84. {
  85.   Provider = $EventProv;
  86.   EventQueryList = {"select * from __InstanceCreationEvent where TargetInstance isa \"Win32_NTLogEvent\""};
  87. };
  88. #pragma autorecover
  89. #pragma namespace("\\\\.\\root\\cimv2")
  90. instance of __namespace{ name="ms_409";};
  91. #pragma namespace("\\\\.\\root\\cimv2\\ms_409")
  92. [AMENDMENT, LOCALE(0x409)] 
  93. class Win32_NTEventlogFile : CIM_DataFile
  94. {
  95.   [Values{"WhenNeeded", "OutDated", "Never"} : Amended ToSubclass] string OverWritePolicy;
  96. };
  97. [description("This class is used to translate instances from the NT Eventlog.") : Amended ToSubclass,AMENDMENT, LOCALE(0x409)] 
  98. class Win32_NTLogEvent
  99. {
  100.   [key,description("Identifies the event within the NT Eventlog logfile. This is specific to the logfile and is used together with the logfile name to uniquely identify an instance of this class.") : Amended ToSubclass] uint32 RecordNumber;
  101.   [key,description("The name of NT Eventlog logfile. This is used together with the RecordNumber to uniquely identify an instance of this class.") : Amended ToSubclass] string Logfile;
  102.   [description("Identifies the event. This is specific to the source that generated the event log entry, and is used, together with SourceName, to uniquely identify an NT event type.") : Amended ToSubclass] uint32 EventIdentifier;
  103.   [description("This property has the value of the lower 16-bits of the EventIdentifier property. It is present to match the value displayed in the NT Event Viewer. NOTE: Two events from the same source may have the same value for this property but may have different severity and EventIdentifier values") : Amended ToSubclass] uint16 EventCode;
  104.   [description("The variable-length null-terminated string specifying the name of the source (application, service, driver, subsystem) that generated the entry. It is used, together with the EventIdentifier, to uniquely identify an NT event type.") : Amended ToSubclass] string SourceName;
  105.   [description("Specifies the type of event. This is an enumerated string") : Amended ToSubclass,Values{"error", "warning", "information", "audit success", "audit failure"} : Amended ToSubclass] string Type;
  106.   [description("Specifies a subcategory for this event. This subcategory is source specific.") : Amended ToSubclass] uint16 Category;
  107.   [description("Specifies the translation of the subcategory. The translation is source specific.") : Amended ToSubclass] string CategoryString;
  108.   [description("Specifies the time at which the source generated the event.") : Amended ToSubclass] datetime TimeGenerated;
  109.   [description("Specifies the time at which the event was written to the logfile.") : Amended ToSubclass] datetime TimeWritten;
  110.   [description("The variable-length null-terminated string specifying the name of the computer that generated this event.") : Amended ToSubclass] string ComputerName;
  111.   [description("The user name of the logged on user when the event ocurred. If the user name cannot be determined this will be NULL") : Amended ToSubclass] string User;
  112.   [description("The event message as it appears in the NT Eventlog. This is a standard message with zero or more insertion strings supplied by the source of the NT event. The insertion strings are inserted into the standard message in a predefined format. If there are no insertion strings or there is a problem inserting the insertion strings, only the standard message will be present in this field.") : Amended ToSubclass] string Message;
  113.   [description("The insertion strings that accompanied the report of the NT event.") : Amended ToSubclass] string InsertionStrings[];
  114.   [description("The binary data that accompanied the report of the NT event.") : Amended ToSubclass] Uint8 Data[];
  115.   [description("The Type property specifies the type of event.") : Amended ToSubclass,Values{"error", "warning", "information", "security audit success", "security audit failure"} : Amended ToSubclass] uint8 EventType;
  116. };